<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<link href="<tpl> $template_dir </tpl>/home/css/supply.css" rel="stylesheet" type="text/css" />
<tpl> include file ='../head.config.html' </tpl>
</head>
<body>
<tpl> include file ='../top.html' </tpl>
<div class="content">
	<div class="left-navigation">
		<a href="<tpl> $site_url </tpl>"><tpl> $langCIndex </tpl></a><a href="javascript:;" onclick="list_search('class_id','');"> <tpl> $langSupplyAllClass </tpl></a><tpl> $product_cate_path </tpl><span class="title"><tpl> $langSupplySearchAll </tpl><tpl> $supply_number|default:'0' </tpl><tpl> $langSupplyItem </tpl></span>
	</div>
	<div class="left">
		<div class="clear-f-f"></div>
		<DIV class=list-filter-block>
			<DIV class=lfb-m>
			<DIV class=lfb-b>
				<tpl> if $search_cate_array[0].pc_id neq '' </tpl>
				<DIV class="list-filter yk-fix-float fenlei">
					<P><tpl> $langSupplyAllClass </tpl>  <strong style="font-weight:bold;">:</strong></P>
					<UL class=yk-fix-float>
						<tpl> foreach from=$search_cate_array item=one </tpl>
							<li>
								<a href="javascript:;" onclick="list_search('class_id','<tpl> $one.pc_id </tpl>');"><tpl> $one.pc_name </tpl></a>
							</li>
						<tpl> /foreach </tpl>
					</UL>
				</DIV>
				<tpl> /if </tpl>
				<DIV class="list-filter yk-fix-float">
					<P><tpl> $langSupplyFilter </tpl> <strong style="font-weight:bold;">:</strong> </P>
					<UL class=yk-fix-float>
						<LI class="first current"><B>
							<tpl> if $condition.type eq '' </tpl>
								<tpl> $langSupplyAll </tpl>
							<tpl> else </tpl>
								<a href="javascript:;" onclick="list_search('type','');"><tpl> $langSupplyAll </tpl>
							<tpl> /if </tpl></A></B> 
						</LI>
						<LI class="gongqiu">
						<B>
							<tpl> if $condition.type eq '1' </tpl>
								<tpl> $langSupplyTypeGone </tpl>
							<tpl> else </tpl>
								<a href="javascript:;" onclick="list_search('type','1');"><tpl> $langSupplyTypeGone </tpl></a>
							<tpl> /if </tpl></B> </LI>
		 				<LI class="gongqiu"><B>
							<tpl> if $condition.type eq '2' </tpl>
								<tpl> $langSupplyTypeQiu </tpl>
							<tpl> else </tpl>
								<a href="javascript:;" onclick="list_search('type','2');"><tpl> $langSupplyTypeQiu </tpl></a>
							<tpl> /if </tpl></B>
						</LI>
					</UL>
				</DIV>
			</DIV>
			</DIV>
		</DIV>
		<div class="clear-1-1"></div>
		<div class="condition-filter yk-fix-float">
			<ul class="condition-tab yk-fix-float">
  				<li class=selected><b><b><h1>
					<tpl> if $product_cate_array.pc_id neq '' </tpl>
						<tpl> $product_cate_array.pc_name </tpl>
					<tpl> else </tpl>
						<tpl> $langSupplyAllInfo </tpl>
					<tpl> /if </tpl>
				</h1></b></b>
				</li>
			</ul>
		</div>
        <div class="free-pub">
			<a class="yk-btn yk-btn-style-d yk-m" href="index.php?action=add"><b><b>
				<span class="yk-icon-size-m yk-icon-pub yn-inline-block-icon"></span><span><tpl> $langSupplyAdd </tpl></span></b></b>
			</a> 
		</div>
		<div class=quick-filter>
			<p><span class="top-ver"><tpl> $langSupplyPrice </tpl>：</span>
			<span>
			<input class=min-price name="search_start_price" id="search_start_price" maxlength="12" value="<tpl> $condition.start_price </tpl>">
			 &nbsp;-&nbsp;
			<input class=max-price name="search_end_price" id="search_end_price" maxlength="12" value="<tpl> $condition.end_price </tpl>"></span>
			<span style=" padding-left:25px;"></span>
			<span class="juanju-1"><label for="search_recommend"><input type="checkbox" name="search_recommend" id="search_recommend" value="1" <tpl> if $condition.recommend eq '1' </tpl>checked="checked"<tpl> /if </tpl> /><span><tpl> $langSupplySellRecommend </tpl></span></label></span>
			
			<span class="juanju-1"><label for="search_have_pic"><input type="checkbox" name="search_have_pic" id="search_have_pic" value="1" <tpl> if $condition.have_pic eq '1' </tpl>checked="checked"<tpl> /if </tpl> /><span><tpl> $langSupplyHavePic </tpl></span></label></span>
			
			<span class="juanju-1"><label for="search_full_contact"> <input type="checkbox" name="search_full_contact" id="search_full_contact" value="1" <tpl> if $condition.full_contact eq '1' </tpl>checked="checked"<tpl> /if </tpl> /><span><tpl> $langSupplyFullContact </tpl></span></label></span>
			
			
		  <span style=" padding-left:2px;"><button type=submit onclick="list_search_submit();"><tpl> $langCEnsure </tpl></button></span></p>
  		</div>
		<div class="tbl-list col5">
			<table class="yk-table yk-tbody-cell-dashed">
 				<thead>
  					<tr>
    					<th class="title first-col">
      						<div class=lt>
								<span><tpl> $langSupplyShowType </tpl>：</span> 
								<b class=display-mod>
									<a href="javascript:;" onclick="list_search('orderby','4');"><span class="ico-left"><tpl> $langSupplySortByAdd </tpl></span></a> 
									<a href="javascript:;" onclick="list_search('orderby','2');"><span class="ico-left-2"><tpl> $langSupplySortByRe </tpl></span></a> 
									<a href="javascript:;" onclick="list_search('orderby','5');"><span class="ico-left-1"><tpl> $langSupplyPopularity </tpl></span></a>
								</b>
							</div>
						</th>
    					<th class=middle-col>
      						<div class=dv><span><tpl> $langSupplyPrice </tpl></span> </div>
						</th>
    					<th class=middle-col>
      						<div class=dv><span><tpl> $langSupplyAddTime </tpl></span> </div>
						</th>
    					<th class=last-col>
      						<div class=rt>
      							<div class=dv><span><tpl> $langSupplyMember </tpl></span> 
								</div>
							</div>
						</th>
					</tr>
				</thead>
  				<tbody>
 				<tpl> if $supply_array[0].s_id neq '' </tpl>
					<tpl> section name=i loop=$supply_array </tpl>
  					<tr>
    					<td class=title>
      						<div class="discription has-image">
      							<div class=discription-main>
      								<div class=discription-content>
      									<p class="">
										<tpl> if $supply_array[i].s_recommend eq 1 </tpl>
											<span class=gq></span>
										<tpl> /if </tpl>
										<a title="<tpl> $supply_array[i].s_title </tpl>" class="list-title" href="index.php?action=view&sid=<tpl> $supply_array[i].s_id </tpl>" target="_blank"><tpl> $supply_array[i].short_title </tpl></a>
										</p>
      									<p class=jianjie>
											<span class=yk-lowlight><tpl> $langSupplyIntroduction </tpl>:</span><tpl> $supply_array[i].short_content </tpl></p>
								     </div>
							     </div>
      							<div class=discription-content>
									<a class="img-wrap" href="index.php?action=view&sid=<tpl> $supply_array[i].s_id </tpl>" title="<tpl> $supply_array[i].s_title </tpl>" target="_blank">
									<tpl> if $supply_array[i].s_pic[0] neq '' </tpl>
										<img width="88" height="66" class=img src="<tpl> $site_url </tpl>/<tpl> $supply_array[i].s_pic[0] </tpl>">
									<tpl> else </tpl>
										<img class=img src="<tpl> $template_dir </tpl>/home/images/default_88_66.gif">
									<tpl> /if </tpl>
									</a> 
	  							</div>
							 </div>
						</td>
    					<td class=middle-col>
							<tpl> if $supply_array[i].s_price eq 0 || $supply_array[i].s_price_face eq '1' </tpl>
								<tpl> $langSupplyPriceToFace </tpl>
							<tpl> else </tpl>
								<tpl> $supply_array[i].s_price </tpl>
							<tpl> /if </tpl>
						</td>
    					<td class=middle-col><tpl> $supply_array[i].s_time </tpl></td>
    					<td class=pu>
      						<p>
								<tpl> if $supply_array[i].s_anonymous eq 1 </tpl>
									<a target="_blank" href="<tpl> $site_url </tpl>/store/index.php?userid=<tpl> $supply_array[i].s_member_id </tpl>" ><tpl> $supply_array[i].s_member_name </tpl></a>
								<tpl> else </tpl>
									<tpl> $langSupplyAntmuse </tpl>
								<tpl> /if </tpl>
							</p>
						</td>
					</tr>
					<tpl> /section </tpl>
				<tpl> /if </tpl>
				</tbody>
			</table>
			<div class="yk-fix-float tbl-bottom">
				<div class="pagehead">
					<tpl> if $supply_array[0].s_id neq '' </tpl>
					<tpl> $page_list </tpl>
					<tpl> /if </tpl>
				</div>
			<div class="free-pub free-pub-bottom">
				<a class="yk-btn yk-btn-style-d yk-m" href="#;city=2260" target=_blank><b><b><span 
class="yk-icon-size-m yk-icon-pub yn-inline-block-icon"></span><span><tpl> $langSupplyAdd </tpl></span></b></b></a>
			</div>
	</div>
	<div class="bottom-sousuo">
	<ul><tpl> $langSupplySearchRemark </tpl></ul>
		<div class="search_2">
		<form action="index.php" method="get">
			<input class="z_search" name="keyword" type="text" />
			<input class="a_search" value="<tpl> $langCSearch </tpl>" type="submit" />
		</form>
		</div>
	</div>
	</div>
		<script>
			function list_search_submit(){
				$('#start_price').val($('#search_start_price').val());
				$('#end_price').val($('#search_end_price').val());
				if($('#search_recommend').attr('checked') == true){
					$('#recommend').val('1');
				}else{
					$('#recommend').val('');
				}
				if($('#search_have_pic').attr('checked') == true){
					$('#have_pic').val('1');
				}else{
					$('#have_pic').val('');
				}
				if($('#search_full_contact').attr('checked') == true){
					$('#full_contact').val('1');
				}else{
					$('#full_contact').val('');
				}
				$('#form_list').submit();
			}
		</script>
	</div>
	<div class="right">
		<tpl> include file ='supply.right.html' </tpl>
	</div>
</div>
<form action="index.php" name="form_list" id="form_list">
<input type="hidden" name="class_id" id="class_id" value="<tpl> $condition.class_id </tpl>" />
<input type="hidden" name="type" id="type" value="<tpl> $condition.type </tpl>" />
<input type="hidden" name="recommend" id="recommend" value="<tpl> $condition.recommend </tpl>" />
<input type="hidden" name="have_pic" id="have_pic" value="<tpl> $condition.have_pic </tpl>" />
<input type="hidden" name="full_contact" id="full_contact" value="<tpl> $condition.full_contact </tpl>" />
<input type="hidden" name="valdate" id="valdate" value="<tpl> $condition.valdate </tpl>" />
<input type="hidden" name="orderby" id="orderby" value="<tpl> $condition.orderby </tpl>" />
<input type="hidden" name="start_price" id="start_price" value="<tpl> $condition.start_price </tpl>" />
<input type="hidden" name="end_price" id="end_price" value="<tpl> $condition.end_price </tpl>" />
</form>
<div class="clear-19"></div>
<tpl> include file ='../../../../html/footer.html' </tpl>
</body>
</html>
<script>
function list_search(id,value){
	$('#'+id).val(value);
	$('#form_list').submit();
}
</script>